dc3e24bf7bac157476665a6310e280630a5eaec1,source/org/jasig/portal/container/binding/PortletApplicationUnmarshaller.java,PortletApplicationUnmarshaller,getLanguages,#Element#,140

Before Change


        NodeList portletInfoNL = portletE.getElementsByTagName("portlet-info");
        Element portletInfoE = (Element)portletInfoNL.item(0); // there should only be one
        String title = XML.getChildElementText(portletInfoE, "title");
        String shortTitle = XML.getChildElementText(portletInfoE, "short-title");
        String keywords = XML.getChildElementText(portletInfoE, "keywords");
        LanguageSetImpl languages = new LanguageSetImpl(title, shortTitle, keywords, contextName);
        languages.setClassLoader(Thread.currentThread().getContextClassLoader());

After Change


        String shortTitle = null;
        String keywords = null;
        NodeList portletInfoNL = portletE.getElementsByTagName("portlet-info");
        if (portletInfoNL.getLength() > 0) {
            Element portletInfoE = (Element)portletInfoNL.item(0); // there should only be one
            title = XML.getChildElementText(portletInfoE, "title");
            shortTitle = XML.getChildElementText(portletInfoE, "short-title");
            keywords = XML.getChildElementText(portletInfoE, "keywords");
        }